#include "stm32f10x.h"                  // Device header
#include "Delay.h"
#include "LED.h"
#include "Switch.h"
#include "Buzzer.h"
#include "Light.h"
#include "OLED.h"
#include "Light_Interrput.h"
#include "NOLED.h"


int main(void)
{
	Buzzer_Init();
	// Light_Init();
	LED_Init();
	// OLED_Init();
	// OLED_ShowChar(1,1,'A');

	NOLED_Init();
	// NOLED_ShowChar(0, 0, 'A');
	NOLED_ShowString("modun is nb!!!");
	NOLED_ShowLineString(1, 2, "yes, he is");
	NOLED_ShowLineString(2, 1, "thank you!");
	// NOLED_ShowChar(0, 1, 'C');
	// OLED_ShowString(1, 1, "Hi Zoe!00");
	// Light_Interrput_Init();
	
		// LED_Open();
	while(1) 
	{
		// uint8_t count = Get_Count();
		// while ((count--) > 0)
		// {
		// 	LED_Open();
		// 	Delay_ms(500);
		// 	LED_Close();
		// 	Delay_ms(500);

		// }
		// Delay_s(2);
		LED_Open();
		// Delay_ms(count * 100 + 100);
		// LED_Close();
		// Delay_ms(count * 100 + 100);
		// if (1 == Light_Open())
		// {
			// LED_Open();
			Buzzer_Open();
			Delay_ms(500);
			Buzzer_Close();
			Delay_ms(500);

		// } else {
		// 	Buzzer_Close();
		// 	LED_Close();
		// }
	}
}
